using com.youzu.warh.protocol;
 
 public class SiegeFightInfoPool : ProtoPoolBase<SiegeFightInfo>
 {
     protected override void RecycleChildren(SiegeFightInfo data)
     {
         ProtoFactory.Recycle(data.coordinate);
         for (int i = 0; i < data.elements.Count; i++)
         {
             ProtoFactory.Recycle(data.elements[i]);
         }
         for (int i = 0; i < data.mountUnits.Count; i++)
         {
             ProtoFactory.Recycle(data.mountUnits[i]);
         }
         for (int i = 0; i < data.plunderRes.Count; i++)
         {
             ProtoFactory.Recycle(data.plunderRes[i]);
         }
         ProtoFactory.Recycle(data.target);
     }

     protected override void ClearNetData(SiegeFightInfo data)
     {
         data.coordinate = null;
         data.elements.Clear();
         data.mountUnits.Clear();
         data.plunderRes.Clear();
         data.target = null;
     }
 }